var Main = {
	data() {
		return {
			allcomoptions: [{
				value: '选项1',
				label: '全部数据'
			}, {
				value: '选项2',
				label: '未处理'
			}, {
				value: '选项3',
				label: '处理中'
			}, {
				value: '选项4',
				label: '处理完成'
			}, {
				value: '选项5',
				label: '非常紧急'
			}, {
				value: '选项6',
				label: '急'
			}, {
				value: '选项7',
				label: '普通'
			}, {
				value: '选项8',
				label: '产品投诉'
			}, {
				value: '选项9',
				label: '服务投诉'
			}, {
				value: '选项10',
				label: '客户意见'
			}, {
				value: '选项11',
				label: '其他'
			}],
			allcominfor: '',
			complaintheme: '',
		}

	}
}
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app1')


/*
 * -----------------------------------------------------------------------------------------------
 * -----------------------------------------------------------------------------------------------
 */


/* 遮罩层 */
var Main = {
	data() {
		return {
			comcustid: '',
			customer:[],
			customers:[],
			firsgettman:[],
			firsgettmans:[],
			cclassify:[],
			cclassifies:[],
			allcomcustmanid:[],
			allcomcustmanids:[],
			allcomspendtime:[],
			allcomspendtimes:[],
			comform: {
				comcustid: '',
				comtheme: '',
				firstman: '',
				comclassify: '',
				comdisc: '',
				date1: new Date(),
				time1: '',
				comcustid: '',
				comurgency: '',
				comprocess: '',
				comrusult: '',
				comspendtime: '',
				comfeedbock: '',
				comreturn: '',
				comremark: ''
			},
			dialogFormVisible: false,
			cumloading:false,
			firstmanloading:false,
			rules: {
				comcustid:[{
					required: true,
					message: '请选择客户',
					trigger: 'change'
				}],
				comtheme: [{
					required: true,
					message: '请输入投诉主题',
					trigger: 'change'
				}],
				firstman: [{
					required: true,
					message: '请选择首问接待人',
					trigger: 'change'
				}],
				date1: [{
					required: true,
					message: '请选择日期',
					trigger: 'change'
				}],
				time1: [{
					required: true,
					message: '请选择时间',
					trigger: 'change'
				}]
			},
			/* 日期选择 */
				pickerOptions: {
					disabledDate(time) {
						return time.getTime() > Date.now();
					},
					shortcuts: [{
						text: '今天',
						onClick(picker) {
							picker.$emit('pick', new Date());
						}
					}, {
						text: '昨天',
						onClick(picker) {
							const date = new Date();
							date.setTime(date.getTime() - 3600 * 1000 * 24);
							picker.$emit('pick', date);
						}
					}, {
						text: '一周前',
						onClick(picker) {
							const date = new Date();
							date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
							picker.$emit('pick', date);
						}
					}]
				}
		};
	},
	methods: {

		loadAll() {
			return [{
					"value": "新旺角茶餐厅",
					"address": "上海市普陀区真北路988号创邑金沙谷6号楼113"
				},
				{
					"value": "钱记",
					"address": "上海市长宁区天山西路"
				},
				{
					"value": "壹杯加",
					"address": "上海市长宁区通协路"
				},
				{
					"value": "四海游龙（天山西路店）",
					"address": "上海市长宁区天山西路"
				}
			];
		},
		/* querySearchAsync(queryString, cb) {
			var restaurants = this.restaurants;
			var results = queryString ? restaurants.filter(this.createStateFilter(queryString)) : restaurants;

			clearTimeout(this.timeout);
			this.timeout = setTimeout(() => {
				cb(results);
			}, 3000 * Math.random());
		}, */
		createStateFilter(queryString) {
			return (state) => {
				return (state.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
			};
		},
		handleSelect(item) {
			console.log(item);
		},
		mounted() {
			this.restaurants = this.loadAll();
		},
		//获取数据
		getNew(){
			var _this=this;
			this.dialogFormVisible=true;
			axios.post("/aftersale/chooseOptions",
					//参数转换
//					Qs.stringify(this.comform, {
//						arrayFormat: 'brackets'
//					})
					//id:
					//ajax请求成功的回调函数
				).then(function(v) {
					console.log("回调成功，获取了服务器端返回的值v");
					console.log(v);
					//获取客户
					_this.customers= v.data.comcustid.map(item => {
						return { value: item.ID, label: item.name };
					});
					_this.customer=_this.customers;
					//获取执行人
					_this.firsgettman= v.data.firstman.map(item => {
						return { value: item.ID, label: item.name };
					});
						_this.firsgettmans=_this.firsgettman;
					//获取分类
					_this.cclassify= v.data.comclassify.map(item => {
						return { value: item.value, label: item.label };
					});
					_this.cclassifies=_this.cclassify;
					/*//获取投诉人
					_this.allcomcustmanid= v.data.comcustmanid.map(item => {
						return { value: item.ID, label: item.name };
					});*/
					_this.allcomcustmanids=_this.allcomcustmanid;
					//获取花费时间
					_this.allcomspendtime= v.data.comspendtime.map(item => {
						return { value: item.dictId, label: item.dictName };
					});
					_this.allcomspendtimes=_this.allcomspendtime;
				})/*.catch(function() {
					alert("出错了");
				})*/;
		},
		 //加载界面客户
		cumremoteMethod(query) {
			var _this=this;
		      if (query !== '') {
		        this.cumloading = true;
		        setTimeout(() => {
		          this.cumloading = false;
		          this.customer = _this.customers.filter(item => {
		            return item.label.toLowerCase()
		              .indexOf(query.toLowerCase()) > -1;
		          });
		        }, 200);
		      } else {
		        this.uosign = [];
		      }
		    },
		    comcustidto(){
				var _this=this;
				_this.customer=_this.customers;
			},
			//选择投诉编号查询对应的联系人
			selectOnechange(){
				 var _this=this;
				 console.log("1234e");
				 console.log(_this);
				axios.post("/aftersale/complaintOne",
				Qs.stringify({
				'c_id':_this.comform.comcustid
				}
				,{arrayFormat: 'brackets'})
				).then(function(v){					          				
				console.log("回调成功，获取了服务器端返回的值v");
				console.log(v.data);
				_this.allcomcustmanid= v.data.comcustmanid.map(item => {
					return { value: item.ID, label: item.name };
				}); 
				//_this.orderes
				})/*.catch(function(){
				alert("信息出错了");
				})*/;					
			},
				//加载首问接待人
			firstmanMethod(query){
				var _this=this;
						if (query !== '') {
							this.firstmanloading = true;
							setTimeout(() => {
								this.firstmanloading = false;
								this.firsgettman = _this.firsgettmans.filter(item => {
									return item.label.toLowerCase()
										.indexOf(query.toLowerCase()) > -1;
								});
							}, 200);
						} else {
							this.uosign = [];
						}
			},
			//加载分类
			comclassifyMethod(query) {
				var _this=this;
						if (query !== '') {
							this.cumloading = true;
							setTimeout(() => {
								this.cumloading = false;
								this.cclassify = _this.cclassifies.filter(item => {
									return item.label.toLowerCase()
										.indexOf(query.toLowerCase()) > -1;
								});
							}, 200);
						} else {
							this.uosign = [];
						}
					},
			//加载投诉人
			comcustmanidMethod(query) {
				var _this=this;
				if (query !== '') {
					this.cumloading = true;
					setTimeout(() => {
						this.cumloading = false;
						this.allcomcustmanid = _this.allcomcustmanids.filter(item => {
							return item.label.toLowerCase()
							.indexOf(query.toLowerCase()) > -1;
						});
					}, 200);
				} else {
					this.uosign = [];
				}
			},
			//加载花费时间
			comspendtimeMethod(query) {
				var _this=this;
				if (query !== '') {
					this.cumloading = true;
					setTimeout(() => {
						this.cumloading = false;
						this.allcomspendtime = _this.allcomspendtimes.filter(item => {
							return item.label.toLowerCase()
							.indexOf(query.toLowerCase()) > -1;
						});
					}, 200);
				} else {
					this.uosign = [];
				}
			},
		
		submitForm(comform) {
			//验证方法
			//alert("添加！");
			var _this=this;
			this.$refs[comform].validate((valid) => {
				if (valid) {
					//post提交数据
					axios.post("/aftersale/addcomplaint",
						//参数转换
						Qs.stringify(this.comform, {
							arrayFormat: 'brackets'
						})
						//id:
						//ajax请求成功的回调函数
					).then(function(v) {
						console.log("回调成功，获取了服务器端返回的值v");
						console.log(v);
						  _this.$message({
		           			showClose: true,
							type: 'success',
							message: '添加成功!',
							duration:3000,
							center: true
						});
		           		//延时两秒刷新
		           		setTimeout(function (){
		           			window.location.href = '/aftersale/complaint';
		           		}, 2000);
					}).catch(function() {
						//alert("出错了");
						_this.$message({
		           			showClose: true,
							type: 'success',
							message: '添加失败!',
							duration:3000,
							center: true
						});
					});
				} else {
					console.log('error submit!!');
					return false;
				}
			});
		},
		resetForm(formName) {
			this.$refs[formName].resetFields();
		}
	}
}

var Ctor = Vue.extend(Main)
new Ctor().$mount('#app2')

/*
 * -----------------------------------------------------------------------------------------------
 * -----------------------------------------------------------------------------------------------
 */

/*  表单  */
var Main = {
	data() {
		return {
			customer:[],
			customers:[],
			firsgettman:[],
			firsgettmans:[],
			cclassify:[],
			cclassifies:[],
			allcomcustmanid:[],
			allcomcustmanids:[],
			allcomspendtime:[],
			allcomspendtimes:[],
			comtable: complainttable,
			/*comtable: [{
				ID: '20161123',
				comtheme: '服务态度差',
				comclassify: '服务投诉',
				comcust: '张三',
				comdate: '2018-09-25',
				comtime: '9:00',
				comurgency: '紧急',
				comafterman: 'rose',
				comresult: '未处理',
				comman: '张三'
			}, {
				ID: '20160503',
				comtheme: '运输损坏',
				comclassify: '产品投诉',
				comcust: '李四',
				comdate: '2018-06-23',
				comtime: '10:00',
				comurgency: '一般',
				comafterman: 'rose',
				comresult: '未处理',
				comman: '李四'
			}, {
				ID: '20160503',
				comtheme: '运输损坏',
				comclassify: '产品投诉',
				comcust: '赵二',
				comdate: '2018-10-21',
				comtime: '10:00',
				comurgency: '一般',
				comafterman: 'rose',
				comresult: '未处理',
				comman: '赵二'
			}, {
				ID: '20160503',
				comtheme: '运输损坏',
				comclassify: '产品投诉',
				comcust: '张珊',
				comdate: '2018-08-23',
				comtime: '10:00',
				comurgency: '一般',
				comafterman: 'rose',
				comresult: '未处理',
				comman: '张珊'
			}, {
				ID: '20160503',
				comtheme: '435te',
				comclassify: '产品投诉',
				comcust: '王五',
				comdate: '2018-11-23',
				comtime: '10:00',
				comurgency: '一般',
				comafterman: 'rose',
				comresult: '未处理',
				comman: '王五'
			}],*/
			pages: pageinfo,
			currentPage4: pageinfo.pageNum,
			multipleSelection: [],
			dialogFormVisible: false,
			dialogDelete:false,
			cumloading:false,
			comform: {
				ID:"",
				comcustid: '',
				comtheme: '',
				firstman: '',
				comclassify: '',
				comdisc: '',
				date1: '',
				time1: '',
				comcustmanid: '',
				comurgency: '',
				comprocess: '',
				comrusult: '',
				comspendtime: '',
				comfeedbock: '',
				comreturn: '',
				comremark: ''
			},
			rules: {
				comcustid:[{
					required: true,
					message: '请选择客户',
					trigger: 'change'
				}],
				comtheme: [{
					required: true,
					message: '请输入投诉主题',
					trigger: 'change'
				}],
				firstman: [{
					required: true,
					message: '请选择首问接待人',
					trigger: 'change'
				}],
				date1: [{
					required: true,
					message: '请选择日期',
					trigger: 'change'
				}],
				time1: [{
					required: true,
					message: '请选择时间',
					trigger: 'change'
				}]
			},
			/* 日期选择 */
				pickerOptions: {
					disabledDate(time) {
						return time.getTime() > Date.now();
					},
					shortcuts: [{
						text: '今天',
						onClick(picker) {
							picker.$emit('pick', new Date());
						}
					}, {
						text: '昨天',
						onClick(picker) {
							const date = new Date();
							date.setTime(date.getTime() - 3600 * 1000 * 24);
							picker.$emit('pick', date);
						}
					}, {
						text: '一周前',
						onClick(picker) {
							const date = new Date();
							date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
							picker.$emit('pick', date);
						}
					}]
				},
		}
	},
	methods: {
		handleClick(row) {
			console.log(row);
		},
		//获取数据
		getNew(){
			var _this=this;
			this.dialogFormVisible=true;
			axios.post("/aftersale/chooseOptions",
					//参数转换
//					Qs.stringify(this.comform, {
//						arrayFormat: 'brackets'
//					})
					//id:
					//ajax请求成功的回调函数
				).then(function(v) {
					console.log("回调成功，获取了服务器端返回的值v");
					console.log(v);
					//获取客户
					_this.customers= v.data.comcustid.map(item => {
						return { value: item.ID, label: item.name };
					});
					_this.customer=_this.customers;
					//获取执行人
					_this.firsgettman= v.data.firstman.map(item => {
						return { value: item.ID, label: item.name };
					});
						_this.firsgettmans=_this.firsgettman;
					//获取分类
					_this.cclassify= v.data.comclassify.map(item => {
						return { value: item.value, label: item.label };
					});
					_this.cclassifies=_this.cclassify;
					/*//获取投诉人
					_this.allcomcustmanid= v.data.comcustmanid.map(item => {
						return { value: item.ID, label: item.name };
					});*/
					_this.allcomcustmanids=_this.allcomcustmanid;
					//获取花费时间
					_this.allcomspendtime= v.data.comspendtime.map(item => {
						return { value: item.dictId, label: item.dictName };
					});
					_this.allcomspendtimes=_this.allcomspendtime;
				})/*.catch(function() {
					alert("出错了");
				})*/;
		},
		 //加载界面客户
		cumremoteMethod(query) {
			var _this=this;
		      if (query !== '') {
		        this.cumloading = true;
		        setTimeout(() => {
		          this.cumloading = false;
		          this.customer = _this.customers.filter(item => {
		            return item.label.toLowerCase()
		              .indexOf(query.toLowerCase()) > -1;
		          });
		        }, 200);
		      } else {
		        this.uosign = [];
		      }
		    },
		    comcustidto(){
				var _this=this;
				_this.customer=_this.customers;
			},
			//选择客户查询对应的联系人
			selectOnechange(){
				 var _this=this;
				 console.log(_this);
				axios.post("/aftersale/custTocon",
				Qs.stringify({
				'custid':_this.comform.comcustid
				}
				,{arrayFormat: 'brackets'})
				).then(function(v){					          				
				console.log("回调成功，获取了服务器端返回的值v");
				console.log(v.data);
				_this.allcomcustmanid= v.data.comcustmanid.map(item => {
					return { value: item.ID, label: item.name };
				}); 
				//_this.orderes
				})/*.catch(function(){
				alert("信息出错了");
				})*/;					
			},
				//加载首问接待人
			firstmanMethod(query){
				var _this=this;
						if (query !== '') {
							this.firstmanloading = true;
							setTimeout(() => {
								this.cumloading = false;
								this.firsgettman = _this.firsgettmans.filter(item => {
									return item.label.toLowerCase()
										.indexOf(query.toLowerCase()) > -1;
								});
							}, 200);
						} else {
							this.uosign = [];
						}
			},
			//加载分类
			comclassifyMethod(query) {
				var _this=this;
						if (query !== '') {
							this.cumloading = true;
							setTimeout(() => {
								this.cumloading = false;
								this.cclassify = _this.cclassifies.filter(item => {
									return item.label.toLowerCase()
										.indexOf(query.toLowerCase()) > -1;
								});
							}, 200);
						} else {
							this.uosign = [];
						}
					},
			//加载投诉人
			comcustmanidMethod(query) {
				var _this=this;
				if (query !== '') {
					this.cumloading = true;
					setTimeout(() => {
						this.cumloading = false;
						this.allcomcustmanid = _this.allcomcustmanids.filter(item => {
							return item.label.toLowerCase()
							.indexOf(query.toLowerCase()) > -1;
						});
					}, 200);
				} else {
					this.uosign = [];
				}
			},
			//加载花费时间
			comspendtimeMethod(query) {
				var _this=this;
				if (query !== '') {
					this.cumloading = true;
					setTimeout(() => {
						this.cumloading = false;
						this.allcomspendtime = _this.allcomspendtimes.filter(item => {
							return item.label.toLowerCase()
							.indexOf(query.toLowerCase()) > -1;
						});
					}, 200);
				} else {
					this.uosign = [];
				}
			},
		updatehandleClick(row) {
			var complaintfrom = this;
			var id= row;
			console.log(complaintfrom);
			console.log(row);
			axios.post("/aftersale/complaintOne",
				Qs.stringify( {
			   			'c_id':row.ID,
				   },{arrayFormat: 'brackets'}) 
				/* //参数转换
				params:{
					complaintId:row.ID
				} */
				//ajax请求成功的回调函数
			).then(function(v) {
				console.log("回调成功，获取了服务器端返回的值v");
				console.log(v.data);
				//获取客户
				complaintfrom.customers= v.data.comcustid.map(item => {
					return { value: item.ID, label: item.name };
				});
				complaintfrom.customer=complaintfrom.customers;
				//获取执行人
				complaintfrom.firsgettman= v.data.firstman.map(item => {
					return { value: item.ID, label: item.name };
				});
				complaintfrom.firsgettmans=complaintfrom.firsgettman;
				//获取分类
				complaintfrom.cclassify= v.data.comclassify.map(item => {
					return { value: item.value, label: item.label };
				});
				complaintfrom.cclassifies=complaintfrom.cclassify;
				console.log("111");
				console.log(v.data.comcustmanid);
				//获取投诉人
				complaintfrom.allcomcustmanid= v.data.comcustmanid.map(item => {
					return { value: item.ID, label: item.name };
				});
				complaintfrom.allcomcustmanids=complaintfrom.allcomcustmanid;
				//获取花费时间
				complaintfrom.allcomspendtime= v.data.comspendtime.map(item => {
					return { value: item.dictId, label: item.dictName };
				});
				complaintfrom.allcomspendtimes=complaintfrom.allcomspendtime;
				console.log(v.data.comcustmanid);
				//传值
				console.log(v.data.allcomplaint);
				complaintfrom.comform.ID=v.data.allcomplaint.ID;
				complaintfrom.comform.comcustid=v.data.allcomplaint.c_custId;
				complaintfrom.comform.comtheme=v.data.allcomplaint.comtheme;
				complaintfrom.comform.firstman=v.data.allcomplaint.c_userID;
				complaintfrom.comform.comclassify=v.data.allcomplaint.classifyid;
				complaintfrom.comform.comdisc=v.data.allcomplaint.c_description;
				complaintfrom.comform.date1=v.data.allcomplaint.comdate;
				complaintfrom.comform.time1=v.data.allcomplaint.comtime;
				complaintfrom.comform.comcustmanid=v.data.allcomplaint.comman;
				complaintfrom.comform.comurgency=v.data.allcomplaint.comurgency;
			 	complaintfrom.comform.comprocess=v.data.allcomplaint.c_process;
				complaintfrom.comform.comrusult=v.data.allcomplaint.comresult;
				complaintfrom.comform.comspendtime=v.data.allcomplaint.spend_time;
				complaintfrom.comform.comfeedbock=v.data.allcomplaint.c_feedback;
				complaintfrom.comform.comreturn=v.data.allcomplaint.c_return;
				complaintfrom.comform.comremark=v.data.allcomplaint.c_remark;
				
			})/* .catch(function() {
				alert("出错了");
			} )*/;
			//this.selectOnechange();
			this.dialogFormVisible = true;
		},
		//选择客户查询对应的联系人
		selectOnechange(){
			 var _this=this;
			 console.log(_this);
			axios.post("/aftersale/custTocon",
			Qs.stringify({
			'custid':_this.comform.comcustid
			}
			,{arrayFormat: 'brackets'})
			).then(function(v){					          				
			console.log("回调成功，获取了服务器端返回的值v");
			_this.allcomcustmanid= v.data.comcustmanid.map(item => {
				return { value: item.ID, label: item.name };
			}); 
			//_this.orderes
			})/*.catch(function(){
			alert("信息出错了");
			})*/;					
		},
		handleSelectionChange(val) {
			this.multipleSelection = val;
		},
		/*handleSizeChange(val) {
			console.log(`每页 ${val} 条`);
		},
		handleCurrentChange(val) {
			console.log(`当前页: ${val}`);
		},*/
		handleSizeChange(val) {
			window.location.href = '/aftersale/complaint?pageSize=' + val;

		},
		handleCurrentChange(val) {
			window.location.href = '/aftersale/complaint?pageNum=' + val;
		},

		loadAll() {
			return [{
					"value": "Hot honey 首尔炸鸡（仙霞路）",
					"address": "上海市长宁区淞虹路661号"
				},
				{
					"value": "钱记",
					"address": "上海市长宁区天山西路"
				},
				{
					"value": "南拳妈妈龙虾盖浇饭",
					"address": "普陀区金沙江路1699号鑫乐惠美食广场A13"
				}
			];
		},
	/* 	querySearchAsync(queryString, cb) {
			var restaurants = this.restaurants;
			var results = queryString ? restaurants.filter(this.createStateFilter(queryString)) : restaurants;

			clearTimeout(this.timeout);
			this.timeout = setTimeout(() => {
				cb(results);
			}, 3000 * Math.random());
		}, */
		createStateFilter(queryString) {
			return (state) => {
				return (state.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
			};
		},
		handleSelect(item) {
			console.log(item);
		},
		mounted() {
			this.restaurants = this.loadAll();
		},
		/*submitForm(formName) {
			this.$refs[formName].validate((valid) => {
				if (valid) {
					alert('submit!');
				} else {
					console.log('error submit!!');
					return false;
				}
			});
		},
		resetForm(formName) {
			this.$refs[formName].resetFields();
		},*/
		//表单提交修改
		submitForm(comform) {
			//验证方法
			//alert("修改！");
			var _this=this;
			this.$refs[comform].validate((valid) => {
				if (valid) {
					//post提交数据
					axios.post("/aftersale/updatecomplaint",
						//参数转换
						Qs.stringify(this.comform, {
							arrayFormat: 'brackets'
						})
						//id:
						//ajax请求成功的回调函数
					).then(function(v) {
						console.log("回调成功，获取了服务器端返回的值v");
						console.log(v);
						  _this.$message({
		           			showClose: true,
							type: 'success',
							message: '修改成功!',
							duration:3000,
							center: true
						});
		           		//延时两秒刷新
		           		setTimeout(function (){
		           			window.location.href = '/aftersale/complaint';
		           		}, 2000);
					}).catch(function() {
						//alert("出错了");
						_this.$message({
		           			showClose: true,
							type: 'success',
							message: '修改失败!',
							duration:3000,
							center: true
						});
					});
				} else {
					console.log('error submit!!');
					return false;
				}
			});
		},
		resetForm(formName) {
			this.$refs[formName].resetFields();
		},
		deletenew(ID){
			this.ID=ID;
			this.dialogDelete=true;
			
		},
		//删除方法
		Delete(){
			var _this=this;
			axios.get("/aftersale/deleteoneComplaint",
           			//参数转换
           			//Qs.stringify(this.form,{arrayFormat: 'brackets'})
           			//ajax请求成功的回调函数
           			{
						params:{
							ID:_this.ID
						}
           			}
          			).then(function(response){					          				
           			console.log("回调成功，获取了服务器端返回的值v");
           			console.log(response.data);					           		
           		_this.restaurants=response.data;
           		//alert("删除成功！");
           		_this.$message({
           			showClose: true,
					type: 'success',
					message: '删除成功!',
					duration:3000,
					center: true
				});
           		//延时两秒刷新
           		setTimeout(function (){
           			window.location.href = '/aftersale/complaint';
           		}, 2000);

           	}).catch(function(){
           		//alert("删除失败！");
           		_this.$message({
					type: 'error',
					message: '删除失败!',
					duration:3000,
					center: true
				});
           	});	//这个是数据的初始化
	      },
	      //导出Excel
	      downloadfile(){
	    	  window.location.href ="/aftersale/ComplaintExcelDownloads";
	      }
		/*deletenew() {
			this.$confirm('此操作将删除该条记录, 是否继续?', '提示', {
				confirmButtonText: '确定',
				cancelButtonText: '取消',
				type: 'warning',
				center: true
			}).then(() => {
				this.$message({
					type: 'success',
					message: '删除成功!'
				});
			}).catch(() => {
				this.$message({
					type: 'info',
					message: '已取消删除!'
				});
			});
		}
*/
	}

}
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app3')
